<?php
/**
 * 控制 ACL 访问的资源
 */

return array(
    'Administrators' => array(
        'RoleName' => '超级管理员',
        'RoleId'    => 0,
        'Inherits' => 'Users',
        'Resources' => array(
            'Home' => array('index'),
            'Member' => array('list')
        )
    ),
    'Users' => array(
        'RoleName' => '管理员',
        'RoleId'    => 1,
        'Inherits' => 'Guests',
        'Resources' => array(
            'Home'          => array('index'),
            'Connector'     => array('list','edit','detail'),
            'Group'         => array('list','edit','detail'),
            'Traffic'       => array('list'),
            'Performance'   => array('list'),
            'Authorize'     => array('list')
        )
    ),
    'Guests' => array(
        'RoleName' => '普通用户',
        'RoleId'    => 2,
        'Inherits' => 'Anonymous',
        'Resources' => array(
            'App' => array('list')
        )
    ),
    'Anonymous' => array(
        'RoleName' => '匿名用户',
        'RoleId'    => 3,
        'Resources' => array(
            'Errors' => array(
                'show404','show401'
            ),
            'Account' => array(
                'login','logout','captcha'
            )
        )
    )
);